package com.tiny.shiro;

import java.io.Serializable;


public class SimpleUser implements Serializable{
	private static final long serialVersionUID = 1L;
	private final Long id;
	private final String username;

	public SimpleUser(Long id, String username) {
		super();
		this.id = id;
		this.username = username;
	}
	public final Long getId() {
		return id;
	}
	/**
	 * @Title: getUsername  
	 * @Description: 获得用户名 
	 * @return 
	 * @since V1.0.0
	 */
	public final String getUsername() {
		return username;
	}
	
	@Override
	public String toString(){
		return username;
	}
}
